package cn.yunhe.dplayerdemo3.websocket;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebStocketConfig {

    /**
     * 支持websocket
     * 如果不适用内置tomcat,则无需配置
     *
     * @return
     */
    @Bean
    public ServerEndpointExporter createServerEndExporter(){
        return new ServerEndpointExporter();
    }
}
